<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Demo</title>
</head>
<body>
	<div>---------------------add-----------------------------------------</div>
	<form>
		phone:<input name="phone" id="phone" value=""/><br />
		message:<input name="message" id="message" value=""/><br />
		application id:<input name="applicationId" id="applicationId" value=""/><br />
		<input type="button" value="addUser"  id="addUser"/>
	</form>

	
<script src="http://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>

<script>
    $(function() {
        $("#addUser").on("click",function(){
        	var phone = $("#phone").val();
        	var message = $("#message").val();
        	var applicationId = $("#applicationId").val();
        	var params = '{"phone":"' + phone + '","applicationId":"' + applicationId + '", "message":"' +  message + '"}';

            $.ajax({
                type: "post",
                url: "/ehualu-msg/msg/msg/send",
                data: params,
                contentType: "application/json",
                dataType: "json",
                success: function(data) {
                    alert(data);
                }
            });
        });
   
    });
</script>

</body>
</html>